package com.xiangge.zuoye.Demo4;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 15:55
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Teacher t1 = new Teacher("周志鹏","30","Java基础中面向对象");
        t1.eat();
        t1.jiangke();
        Teacher t2 = new Teacher();
        t2.setName("周志鹏");
        t2.setAge("30");
        t2.setContent("Java基础中面向对象");
        t2.eat();
        t2.jiangke();

        Student s1 = new Student("韩光","18","面向对象");
        s1.eat();
        s1.study();
        Student s2 = new Student();
        s2.setName("韩光");
        s2.setAge("18");
        s2.setContent("面向对象");
        s2.eat();
        s2.study();
    }
}
